package com.tencent.qf.bascic.api.dto;

import com.alibaba.fastjson.JSONObject;
import com.tencent.qf.common.gateway.scrm.SCRMCommonRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: p_haojiawu@tencent.com
 * @date: 2023-02-07 18:16
 **/
@EqualsAndHashCode(callSuper = true)
@ApiModel
@Data
public class SendMsgRequest extends SCRMCommonRequest {
    @ApiModelProperty(value = "推送的模板id", required = true)
    @NotNull(message = "推送的模板id不能为空")
    private Integer type;

    @ApiModelProperty(value = "推送的企业id", required = true)
    @NotEmpty(message = "推送的企业id不能为空")
    private String corpId;

    @ApiModelProperty(value = "推送的员工id")
    private List<String> userIds;

    @ApiModelProperty(value = "权限员工id")
    private String authUserId;

    @ApiModelProperty(value = "传输的参数", required = true)
    @NotEmpty(message = "params不能为空")
    private JSONObject params;
}
